Skip to content

Refactoring Percy and SDK Tool #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 47 commits into from
Aug 20, 2025
Merged

Conversation

tech-sushant
Copy link
Collaborator

No description provided.

@Vishalan Vishalan requested a review from Copilot August 13, 2025 12:43
Copilot

This comment was marked as outdated.

@tech-sushant tech-sushant requested a review from Copilot August 13, 2025 13:50
Copilot

This comment was marked as outdated.

@tech-sushant tech-sushant requested a review from Copilot August 19, 2025 11:58
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the SDK tool architecture by introducing a modular, feature-specific organization for Percy visual testing integration. It separates concerns between different Percy integration modes (Web, Automate, and combined BrowserStack SDK), improves code reusability, and establishes a clear structure for handling various testing configurations.

Key changes include:

  • Modular reorganization of SDK utilities into feature-specific directories
  • New Percy integration handlers for different modes (Web, Automate, SDK combined)
  • Enhanced type safety and schema validation
  • Centralized constants and common utilities

Reviewed Changes

Copilot reviewed 45 out of 45 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/tools/simulate-percy.ts New tool for simulating Percy visual changes for new users
src/tools/sdk-utils/percy-web/ Percy Web standalone integration handlers and configurations
src/tools/sdk-utils/percy-automate/ Percy Automate integration handlers and configurations
src/tools/sdk-utils/percy-bstack/ Percy + BrowserStack SDK combined integration handlers
src/tools/sdk-utils/common/ Shared utilities, types, schemas, and constants
src/tools/sdk-utils/bstack/ BrowserStack SDK-only integration handlers
src/tools/percy-snapshot-utils/ Utilities for Percy snapshot management and test file detection
src/tools/percy-sdk.ts Main Percy setup tool registration
src/tools/bstack-sdk.ts Refactored BrowserStack SDK tool registration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@tech-sushant tech-sushant changed the title Refactoring SDK Tool Refactoring Percy and SDK Tool Aug 20, 2025
@tech-sushant tech-sushant changed the base branch from main to beta August 20, 2025 11:07
@tech-sushant tech-sushant merged commit 5de7f59 into browserstack:beta Aug 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants